package dao;

import dataBean.UserDo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * Created by lxl on 2015/10/17.
 */
public interface UserDao {

    @Insert("insert into user(username,password)values(#{username},#{password})")
    public int insertUser(UserDo userDo) ;

    @Update("update user set password=#{password} where username=#{username}")
    public int updateUser( UserDo userDo ) ;

    @Select("select username , password from user where username=#{username}")
    public UserDo selectUserByUsername( String username ) ;

}
